/*-----------------------------
----$Source: Volumes://MATEOR/vais/modules/lstring/lstring.c$
----$Date: June 30, 2012$
-------------------------------
VAIS Copyright Matthew Caswell, 2012
-----------------------------*/
#include<vais.h>
#include<lstring.h>
#include<string.h>
#include<stdio.h>


void split_r (char str[MAX_CLEN], char token, char* array[MAX_CLEN]){
  int i = 0;
  
  array[i] = strtok (str, &token);
  
  debug (array[i], "split_r", "lstring/lstring.c");
  
  i++;
  
  while((array[i] = strtok (null, &token))){
    debug (array[i], "split_r", "lstring/lstring.c");
    i++;
  }
}
